<?php
define('suppress',true);
require_once('../lib/lib.php');
$v = constant('ComicCMS');

if ($lockfile = load_file('.../lock.php',true)) {
    if (rtrim($lockfile->read(0))=='<?php exit; ?' . '>') {
        if ($_SERVER['REMOTE_ADDR']!=$lockfile->read(1)) {
            die('Upgrade currently locked to another user. Delete lock.php through FTP to continue.');
        }
    }
}

function destorify($inp) {
    if (is_array($inp)) {
        foreach ($inp as $key => $value) {
            $inp[$key] = destorify($value);
        }
        return $inp;
    }
    $change = array(
      '&p'=>'|',
      '&b'=>"\n",
      '&a'=>'&',
    );
    foreach ($change as $from => $to) {
        $inp = str_replace($from,$to,$inp);
    }
    return $inp;
}

$v = file('./storage/private/settings.php');
$v = rtrim($v[1]);
$v = substr($v,strpos($v,'|')+1);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>ComicCMS</title>
    <meta name="generator" content="ComicCMS" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta name="robots" content="NOINDEX, NOFOLLOW" />
    <style type="text/css">
        p, div.box {margin:1.5em 0; padding:1em; text-align:left; /*background-image:url(../admin/img/background.png); background-repeat:repeat-x;*/}
        pre {text-align:left; font-size:10px;}
        table {margin:0 auto 1em;}
        table th {font-size:12px;}
        table th, table td {padding:0 5px; border-bottom:dashed 1px #888; border-right:dashed 1px #55b;}
        table td {text-align:center;}
        textarea {width:100%; height:200px;}
    </style>
</head>
<body style="margin:20px 0 50px; text-align:center; font-family:verdana, arial, helvetica; font-size:12px; background-image:url(../admin/img/background.png); background-repeat:repeat-x;">
    <div style="width:600px; margin:0 auto;">
        <a href="http://comiccms.com/" target="_blank"><img src="../admin/img/linklogo.png" alt="ComicCMS" style="border:none 0px;" /></a>